package com.dragon.connector.imServer.session.entity;

import com.dragon.protoJo.bean.msg.UserDTO;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

@Data
@Builder
public class SessionCache implements Serializable {

    private static final long serialVersionUID = -403010884211394856L;

    // 用户id
    private String userId;

    // 会话id
    private String sessionId;

    // paltForm
    private UserDTO.PLATTYPE platform;

    // 节点信息
//    private ImNode imNode;

    public SessionCache(){
        userId = "";
        sessionId = "";
        platform = UserDTO.PLATTYPE.WEB;
//        imNode = new ImNode("unKnown", 0);
    }

    public SessionCache(String userId, String sessionId, UserDTO.PLATTYPE platform){
        this.userId = userId;
        this.sessionId = sessionId;
        this.platform = platform;
    }
}
